package com.yeeyk.shell.controller;

import com.yeeyk.shell.service.BeanDefinnitBean;
import com.yeeyk.shell.service.CreateBeanDefinitionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class IndexController {

    @Autowired
    private CreateBeanDefinitionService createBeanDefinitionService;

    @Autowired
    private BeanDefinnitBean beanDefinnitBean;

    @RequestMapping("/")
    public String index() {
        return "index";
    }


    @RequestMapping("/beanDefinnitBean")
    public String beanDefinnitBean() {
        return beanDefinnitBean.print();
    }

}
